<?php
/* @var $this CategoryController */
/* @var $model Category */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'category-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note"><span class="required">*</span> 是必填内容.</p> 

	<?php echo $form->errorSummary($model); ?>


 

	<div class="row"> 
        <?php echo $form->labelEx($model,'categorytype'); ?>
            <?php echo $form->dropDownList(
                  $model,
                  'categorytype', 
                CHtml::listData(
                   array(array('id'=>'电影','title'=>"电影"),array('id'=>'应用','title'=>"应用")),
                    'id',
                    'title'
                )
            ); ?>  
    </div>

    <div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '新增' : '修改',array('class'=>'subButton')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->